package com.thread.queuelog;

import java.util.Random;

public class TestThread extends Thread{
	Log log;
	
	public TestThread(Log log) {
		super();
		this.log = log;
	}

	@Override
	public void run() {
		try {
			sleep(new Random().nextInt(10000));
		} catch (InterruptedException e) {
		}
		log.addLog("log->"+System.currentTimeMillis());
	}
}
